import {DEFAULT_QUERY_OPTION, HISTORY_DEFAULT_QUERY_OPTION} from './constants';
import {PAGE} from '../constants';
const state = {
    domainData: {
        initData: {
            message: '',
            isFetching: false,
            brands: [],
            partSaleOrderTypes: [],
            isDealerUser: false,
            enterprise: {},
            user: '',
            isInput: false,
            isMoneyVisible: false
        },
        list: {
            isFetching: false,
            message: '',
            total: 0,
            data: []
        },
        permission: {
            isFetching: false,
            message: '',
            data: []
        },
        historyList: {
            isFetching: false,
            message: '',
            total: 0,
            data: [],
        },
        dutyUnits: {
            isFetching: false,
            message: '',
            data: []
        },
        category: {
            isFetching: false,
            message: '',
            data: []
        },
        autoList: {
            isFetching: false,
            message: '',
            total: 0,
            data: [],
        },
        athFile: {
            attachments: [],
        },
    },
    appState: {
        queryBySort: {},
        queryCondition: DEFAULT_QUERY_OPTION,
        queryDealer: {},
        queryPartCategory: {},
        queryFaultItem: {},
        //历史查询
        historyQueryCondition: HISTORY_DEFAULT_QUERY_OPTION,
        historyQueryBySort: HISTORY_DEFAULT_QUERY_OPTION,
        queryHistoryDealer: {},
        //查询日志
        autoQueryBySort: {},
        autoQueryCondition: {
            pageIndex: PAGE.index,
            pageSize: PAGE.size,
        },
    },
    ui: {
        showBatchPrintPanel: false,
        showDownloadPanel: false
    },
    showImg: {
        index: 0
    }
};
export default state;
